<?php

/**
 * Created by PhpStorm.
 * User: 陈鸿
 * Date: 2016/5/19
 * Time: 15:26
 */
namespace wxOpen;


class Common
{
    public static function getFiled($key,$value=null)
    {
        $arr = include 'Conf.php';

        if ( $value )
        {
            if ( !empty($arr[$key][$value]) )
            {
                return $arr[$key][$value];
            } else {
                return [];
            }
        } else {
            if ( !empty($arr[$key]) )
            {
                return $arr[$key];
            } else {
                return [];
            }
        }
    }
}